package rdobson.management.projectclock;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

public class TimeMarker {
	private Date mydate;
	private Locale locale;
	private String project;
	
	public TimeMarker(String project){
		this.locale = Locale.UK; //TODO: Consider Internationalisation
		mydate = new Date();
		this.project = project;
	}
	
	public String getDate(int style){
		return DateFormat.getDateInstance(style, locale).format(mydate);
	}
	
	public String getTime(int style){
		return DateFormat.getTimeInstance(style, locale).format(mydate);
	}
	
	public String getProjectName(){
		return this.project;
	}
	
}
